package net4;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class BuildDataBase extends SQLiteOpenHelper{
	
	public BuildDataBase(Context context, CursorFactory factory,int version) {
		super(context, FaWaveConst.db_name, factory, version);
	}
	
    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql = "CREATE TABLE IF NOT EXISTS Account(Id INTEGER PRIMARY KEY ASC, Platform INTEGER," +
        		"AuthType INTEGER,UserName VARCHAR,ScreenName VARCHAR,UserId VARCHAR,UserKey VARCHAR," +
        		"UserSecret VARCHAR,PassWord VARCHAR,UserJson VARCHAR);";
        db.execSQL(sql);
    }
    
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    	
    }
}
